package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 文件信息对象 wps_files
 * 
 * @author ruoyi
 * @date 2024-12-18
 */
@TableName("wps_files")
public class WpsFiles extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 文档ID */
    private Long id;

    /** 文档名称 */
    @Excel(name = "文档名称")
    private String fileName;

    /** 文档版本号 */
    private String version;

    /** 文档大小，单位字节 */
    private String size;

    /** 文档下载地址 */
    @Excel(name = "文档下载地址")
    private String downloadUrl;

    /** 文档创建者ID */
    @Excel(name = "文档创建者ID")
    private Long userId;


    private Long deptId;

    /** 文档最后修改者ID */
    @Excel(name = "文档最后修改者ID")
    private Long modifierId;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 系统保存文件名 */
    private String saveFileName;

    /** 用户信息信息 */
    private List<SysUser> userList;



    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFileName(String fileName) 
    {
        this.fileName = fileName;
    }

    public String getFileName() 
    {
        return fileName;
    }
    public void setVersion(String version) 
    {
        this.version = version;
    }

    public String getVersion() 
    {
        return version;
    }
    public void setSize(String size) 
    {
        this.size = size;
    }

    public String getSize() 
    {
        return size;
    }
    public void setDownloadUrl(String downloadUrl) 
    {
        this.downloadUrl = downloadUrl;
    }

    public String getDownloadUrl() 
    {
        return downloadUrl;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public void setModifierId(Long modifierId)
    {
        this.modifierId = modifierId;
    }

    public Long getModifierId() 
    {
        return modifierId;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setSaveFileName(String saveFileName) 
    {
        this.saveFileName = saveFileName;
    }

    public String getSaveFileName() 
    {
        return saveFileName;
    }

    public List<SysUser> getSysUserList()
    {
        return userList;
    }

    public void setSysUserList(List<SysUser> userList)
    {
        this.userList = userList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("fileName", getFileName())
            .append("version", getVersion())
            .append("size", getSize())
            .append("downloadUrl", getDownloadUrl())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("userId", getUserId())
            .append("modifierId", getModifierId())
            .append("delFlag", getDelFlag())
            .append("saveFileName", getSaveFileName())
            .append("userList", getSysUserList())
            .toString();
    }
}
